/**
 * 认证相关接口模块
 */
import request from '@/utils/request'

/**
 * 登录接口
 * @param {Object} data 登录参数
 * @returns {Promise}
 */
export const login = (data) => {
  return request.post('/tUser/login', data)
}

/**
 * 注册接口
 * @param {Object} data 注册参数
 * @returns {Promise}
 */
export const register = (data) => {
  return request.put('/tUser/Userinsert', data)
}

/**
 * 获取用户信息
 * @returns {Promise}
 */
export const getUserInfo = () => {
  return request.get('/tUser/userinfo')
}

/**
 * 登出接口
 * @returns {Promise}
 */
export const logout = () => {
  return request.post('/auth/logout')
}

/**
 * 检查登录状态接口
 * @returns {Promise}
 */
export const inspectlogin = () => {
  return request.post('/tUser/inspectlogin')
}


